package com.example.demo.service.impl;

import com.example.demo.Entity.CoreData;
import com.example.demo.service.CoreDataService;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
@Service
public class CoreDataServiceImpl implements CoreDataService {
    @Override
    public CoreData caculateResultMoney()
    {
        CoreData data1 = new CoreData();
        data1.setResultMoney(BigDecimal.valueOf(2.03));
        data1.setOrderNumber("23123");
        data1.setOrderType("采购订单-入库");
        data1.setRalculate(data1.CaculatePurchasingMoney(data1.getResultMoney()));
        return data1;
    }
}
